#define _CRT_SECURE_NO_WARNINGS
#include "List.h"

void test1()
{
	LTNode* plist = LTInit();
	/*LTNode* nownode = BuyLTNode(3);
	plist->next = nownode;
	plist->prev = nownode;
	nownode->next = plist;
	nownode->prev = plist;*/
}

void test2()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPushBack(plist, 6);
	LTPushBack(plist, 7);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);
}
void test3()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);
	LTPushFront(plist, 0);
	LTPushFront(plist, -1);
	LTPrint(plist);
	LTPopFront(plist);
	LTPrint(plist);
}
void test4()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTNode*cur=LTFind(plist,4);
	LTInsert(plist, cur, 89);
	LTPrint(plist);
	LTErase(plist, cur);
	LTPrint(plist);
}
int main()
{
	//test1();
	test4();
	return 0;
}